<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="css/style_question.css" type="text/css" rel="stylesheet" />	
<title>Untitled Document</title>
</head>
<body>
<?php
if($_POST['num_ohsr']!=0 and $_POST['num_ohsr']!=''){
?>
                      <table border="0" width="800" id="table16" cellpadding="0">
                        <tr>
                          <td width="95" align="center" bgcolor="#F7E6B7">&nbsp;</td>
						  <td width="95" align="center" bgcolor="#F7E6B7"><font style="font-size: 8.5pt; font-style: normal" face="Verdana" color="#990000">Location</font></td>
						  <td width="95" align="center" bgcolor="#F7E6B7"><font style="font-size: 8.5pt; font-style: normal" face="Verdana" color="#990000">Longitute</font></td>
						  <td width="95" align="center" bgcolor="#F7E6B7"><font style="font-size: 8.5pt; font-style: normal" face="Verdana" color="#990000">Latitude</font></td>
						  <td width="118" align="center" bgcolor="#F7E6B7"><font style="font-size: 8.5pt; font-style: normal" face="Verdana" color="#990000">Total Capacity (KL)</font> </td>
                          <td width="221" align="center" bgcolor="#F7E6B7"><font style="font-size: 8.5pt; font-style: normal" face="Verdana" color="#990000">Status</font> </td>
                        </tr> 
						<?php
					$num_ohsr=$_POST['num_ohsr'];
					if($num_ohsr >0) {
					for($i=1; $i<=$num_ohsr; $i++)
					{
					?>                    
                        <tr>
                          <td height="22" align="center"><input type="text" name="ohsr_id<?php echo $i;?>" id="ohsr_id<?php echo $i;?>" size="18" class="txt5" value="OHSR<?php echo $i;?>" readonly /></td>
                          <td align="center"><input type="text" name="ohsr_location<?php echo $i;?>" id="ohsr_location<?php echo $i;?>" size="18" class="txt5" value="" /></td>
                          <td align="center"><input type="text" name="ohsr_longitude<?php echo $i;?>" id="ohsr_longitude<?php echo $i;?>" size="18" class="txt5" value="" onblur="float1(this,67,80)"/></td>
                          <td align="center"><input type="text" name="ohsr_latitude<?php echo $i;?>" id="ohsr_latitude<?php echo $i;?>" size="18" class="txt5" value="" onblur="float1(this,20,32)"/></td>
                          <td height="22" align="center"><input type="text" name="capacity_ohsr<?php echo $i;?>" id="capacity_ohsr<?php echo $i;?>" size="18" class="txt5" onkeyup="float(this)"></td>
                          <td height="22" align="center"><font color="#000000" size="2"><input type="radio" name="ohsr_status<?php echo $i;?>"id="ohsr_status<?php echo $i;?>" value="functional" checked="checked" onclick="setEnable2(this.value,<?php echo $i;?>)"/>Functional
      <input type="radio" name="ohsr_status<?php echo $i;?>"id="ohsr_status<?php echo $i;?>" value="nonfunctional" onclick="setReadOnly2(this.value,<?php echo $i;?>)" />Non Functional</font> </td>
                        </tr>
						<?php } }?>
						<tr>
						<td height="2" colspan="6" align="center" bgcolor="#F7E6B7"><font style="font-size: 8.5pt; font-style: normal" face="Verdana" color="#990000"></font></td>
						</tr>
                      <input type="hidden" name="ohsrcount" id="ohsrcount" value="<?php echo $num_ohsr;?>">
					  </table>
            <?php }?>
			
	

</body>
</html>
